<template>
  <div>
    <el-collapse value="common">
      <el-collapse-item title="公共配置" name="common">
        <el-form :model="widget.UI.data" label-width="80px" size="mini" class="pad-lft-rgt-10">
          <el-row :gutter="10">
            <el-col :span="24">
              <el-form-item label="连接方式">
                <el-select v-model="widget.UI.data.rtsp_transport" placeholder="请选择连接方式" class="width-100">
                  <el-option label="udp" value='udp'></el-option>
                  <el-option label="tcp" value='tcp'></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>
  import {UrlPlayer} from "@/modules/IDE/widget/custom/UrlPlayer";

  export default {
    name: 'UrlPlayerSpec',
    props: {
      widget: {
        type: UrlPlayer,
        default: () => {
          return {};
        }
      }
    },
    computed: {
      state() {
        return this.widget.getCurrentState();
      }
    }
  };
</script>

<style scoped>
</style>
